import piniaDemo1 from './piniaDemo1'
import piniaDemo2 from './piniaDemo2'

export interface IStore {
  piniaDemo1: ReturnType<typeof piniaDemo1>
  piniaDemo2: ReturnType<typeof piniaDemo2>
}

const stores: IStore = {} as IStore

export const registerStore = () => {
  stores.piniaDemo1 = piniaDemo1()
  stores.piniaDemo2 = piniaDemo2()
}

export default stores
